<script setup>

import { useRoute, useRouter } from 'vue-router'
import TestDemo from '@/components/TestDemo.vue'
import {useUserStore} from '@/stores/index.js'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const router = useRouter()
const route = useRoute()

const golist = () =>{
  router.push('/list')
  console.log(router, route)
}
const userStore = useUserStore()
</script>

<template>
 <div>


   <el-config-provider :locale="zhCn">
     <router-view></router-view>
   </el-config-provider>

<!--   我是app-->
<!--   <test-demo></test-demo>-->
<!--   <el-button @click="$router.push('/home')">跳首页</el-button>-->
<!--   <el-button @click="golist">跳列表页</el-button>-->

<!--   <p>{{ userStore.token }}</p>-->
<!--   <el-button @click="userStore.setToken('123123asdas')">登录</el-button>-->
<!--   <el-button @click="userStore.removeToken()">退出</el-button>-->
 </div>
</template>

<style scoped>

</style>
